package com.ruoyi.workflow.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程定义信息对象 bus_bpmn_info
 *
 * @author xiaohao
 * @date 2022-11-14
 */

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString

@TableName("bus_bpmn_info")
public class BpmnInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 流程名称-数据字典label
     */
    private String bpmnLabel;

    /**
     * 流程类型-数据字典value
     */
    private String bpmnType;

    /**
     * activity流程定义生成的key
     */
    private String processDefinitionKey;

    /**
     * 部署时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deployTime;

    /**
     * 版本号
     */
    private Long version;

    /**
     * 描述信息
     */
    private String info;

    @TableField(exist = false)
    private String resourceName;

    //   部署流程定义ID
    private String deploymentId;


}
